import pytest


@pytest.fixture()
def fun():
    print("---fixture")


@pytest.fixture()
def fun2():
    print("---fixture2")


def test_a(fun):
    print("--------------test_a")


class Test01:
    def test_b(self, fun2):
        print("--------------test_b")

    def test_c(self, fun3):
        print("--------------test_c")

    @pytest.fixture()
    def fun3(self):
        print("---fixture3")